package br.com.multidental.modelo;

public class Contato {
	
	private Long id;
	private String telefone;
	private String tel_comercial;
	private String celular;
	private String email;
	
	public Contato(Long id, String telefone, String tel_comercial,
			String celular, String email) {
		this(telefone, tel_comercial, celular, email);
		this.id = id;
	}

	public Contato(String telefone, String tel_comercial, String celular,
			String email) {
		this.telefone = telefone;
		this.tel_comercial = tel_comercial;
		this.celular = celular;
		this.email = email;
	}

	public Contato() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTelefone() {
		return telefone;
	}

	public void setTelefone(String telefone) {
		this.telefone = telefone;
	}

	public String getTel_comercial() {
		return tel_comercial;
	}

	public void setTel_comercial(String tel_comercial) {
		this.tel_comercial = tel_comercial;
	}

	public String getCelular() {
		return celular;
	}

	public void setCelular(String celular) {
		this.celular = celular;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((celular == null) ? 0 : celular.hashCode());
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result
				+ ((tel_comercial == null) ? 0 : tel_comercial.hashCode());
		result = prime * result
				+ ((telefone == null) ? 0 : telefone.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Contato other = (Contato) obj;
		if (celular == null) {
			if (other.celular != null)
				return false;
		} else if (!celular.equals(other.celular))
			return false;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (tel_comercial == null) {
			if (other.tel_comercial != null)
				return false;
		} else if (!tel_comercial.equals(other.tel_comercial))
			return false;
		if (telefone == null) {
			if (other.telefone != null)
				return false;
		} else if (!telefone.equals(other.telefone))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Contato [id=" + id + ", telefone=" + telefone
				+ ", tel_comercial=" + tel_comercial + ", celular=" + celular
				+ ", email=" + email + "]";
	}
	
	

}
